<?php
/**
 * NMOX Server PHP-MAX
 * index.php
 * 
 * @author David Christian Liedle <david.liedle@gmail.com>
 * @link   http://nmox.org/
 *
 */

require_once('nmox/x.php');
$X->become(PAGE); // become DBPAGE to draw from MySQL instead.

$title = 'Welcome to NMOX Server PHP-MAX 1.0!';

$unit[] = 'This page is the first page your site visitors see.';
$unit[] = 'Replace this content with your own.';

$unit[] = xL('about/').BR.xL('blog/').BR.xL('contact/').BR.xL('forum/').BR.xL('help/').BR.xL('media/').BR.xL('mobile/').BR.xL('news/').BR.xL('press/').BR.xL('print/').BR.xL('search/').BR.xL('services/').BR.xL('wiki/').BR.xL('world/');

$X->title( $title );
//$X->breadcrumb(); // auto-generate breadcrumb navigation
$X->body( xH1( $title ) );

foreach( $unit as $key=>$value ){
    $divid = ( $key ) ? $key : "zero";
    $X->body( xDIV( xP( $unit[$key] ), $divid ) );
}
$xmicrotime[1] = microtime(TRUE);
$X->body( xER( "Exec Time: ".($xmicrotime[1] - $xmicrotime[0]) ) );

$X->body( xP('Visit the NMOX website at ') . xL('http://nmox.org/') );
